const globalData = {};

export default (key,value) =>{
  if(value){
    globalData[key] = value
  }else if(key){
    return globalData[key]
  }else{
    for (let k in globalData) {
      delete globalData[k];
    }
    return true
  }
}